package com.kgc.entity;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.Date;

public class UserCar {
    private Integer id;

    private Integer userId;

    private Integer carId;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String inTime;
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private String outTime;

    private String userName;

    public UserCar(Integer id, Integer userId, Integer carId, String inTime, String outTime, String userName) {
        this.id = id;
        this.userId = userId;
        this.carId = carId;
        this.inTime = inTime;
        this.outTime = outTime;
        this.userName = userName;
    }

    public UserCar(Integer userId, Integer carId, String inTime, String outTime, String userName) {
        this.userId = userId;
        this.carId = carId;
        this.inTime = inTime;
        this.outTime = outTime;
        this.userName = userName;
    }

    public UserCar() {
    }

    public UserCar(Integer userId, Integer carId) {
        this.userId = userId;
        this.carId = carId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCarId() {
        return carId;
    }

    public void setCarId(Integer carId) {
        this.carId = carId;
    }

    public String getInTime() {
        return inTime;
    }

    public void setInTime(String inTime) {
        this.inTime = inTime;
    }

    public String getOutTime() {
        return outTime;
    }

    public void setOutTime(String outTime) {
        this.outTime = outTime;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}